home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 15 / 015.d81 / computer tips < prev    next >
Text File  |  2022-08-26  |  2KB  |  131 lines

  1.  
  2.            COMPUTER TIPS
  3.  
  4.  
  5. From:  Hautzenroeder 79756
  6.  
  7.  
  8.   I recently had a severe problem with
  9.  
  10. my 1541 disk drive which others may
  11.  
  12. experience.  The problem I had was
  13.  
  14. that my 1541 would load programs and
  15.  
  16. read and write sequential files with
  17.  
  18. no problems, but if I were to save a
  19.  
  20. long program or format a disk, I would
  21.  
  22. start to experience READ/WRITE
  23.  
  24. problems.  Two trips to the nearby
  25.  
  26. service center did not cure the
  27.  
  28. problem.  Even when the service
  29.  
  30. technician showed me there were no
  31.  
  32. problems with the 1541 at the shop,
  33.  
  34. the same problem re-appeared the
  35.  
  36. moment I got home.  Switching circuit
  37.  
  38. boards with another 1541 did not cure
  39.  
  40. the problem nor did adding a surge
  41.  
  42. protector. What I finally did was to
  43.  
  44. remove the 1541's cover and metal
  45.  
  46. shield and the problem disappeared!!
  47.  
  48. What happened was the wires going from
  49.  
  50. the READ/WRITE head to the circuit
  51.  
  52. board had a ground wire that was
  53.  
  54. touching the metal shield that covers
  55.  
  56. the circuit board.  Insulating this
  57.  
  58. ground wire from the shield
  59.  
  60. permanently cured my problem.
  61.  
  62.  
  63. - - - - - - - - - - - - - - - - - - -
  64.  
  65.  
  66. From:  Kober 75831
  67.  
  68.  
  69.       READING THE C-64 JOYSTICKS
  70.      {$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}{$f7}
  71.  
  72.   Here are several short statements
  73.  
  74. that allow reading the joysticks from
  75.  
  76. BASIC.
  77.  
  78.       J1 = Joystick in Port #1
  79.       J2 = Joystick in Port #2
  80.       F1 = Firebutton in Port #1
  81.       F2 = Firebutton in Port #2
  82.  
  83.  {SHIFT-*} {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}
  84.  
  85.       J1=NOT PEEK(56321) AND 15
  86.       J2=NOT PEEK(56320) AND 15
  87.  
  88.   The number listed below will be
  89.  
  90. returned in J1, or J2 for the position
  91.  
  92. shown:
  93.  
  94.      POSITION            NUMBER
  95.     {$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}          {$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}{$e3}
  96.         up  --------------- 1
  97.        down  -------------- 2
  98.        left  -------------- 4
  99.        right  ------------- 8
  100.       up-right  ----------- 9
  101.       up-left  ------------ 5
  102.      down-right  ---------- 10
  103.      down-left  ----------- 6
  104.       center  ------------- 0
  105.  
  106.    (Numbers 3 and 7 are not used)
  107.  
  108. {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}  {SHIFT-*}
  109.  
  110.     F1=(NOT PEEK(56321) AND 16)/16
  111.     F2=(NOT PEEK(56320) AND 16)/16
  112.  
  113.  These will return a 1 if the button
  114.  
  115. is pressed, and a 0 if not.
  116.  
  117.   Reading the joysticks and
  118.  
  119. firebuttons isn't the easiest thing to
  120.  
  121. understand. That's why I figured this
  122.  
  123. out and wrote it down. Maybe someone
  124.  
  125. else can benefit from this
  126.  
  127. information.
  128.  
  129.  
  130. ---------< end of article >-----------
  131.